package router

import (
	"github.com/gin-gonic/gin"
	"mi-mall/handlers"
)

func Init() *gin.Engine {
	r := gin.Default()
	r.POST("/login", handlers.Login)

	r.GET("/list", handlers.List)

	r.POST("/Comment", handlers.Comment)
	return r
}
